/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.pa036is.daointerface;

import cz.muni.fi.pa036is.entity.Match;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Kuba
 */
public interface MatchDAO {

    public void addMatch(Match match);

    public void editMatch(Match match);

    public void deleteMatch(Long id);

    public Match findMatch(Long id);
    
    public List<Match> getAllMatchesForPerson(Long id);
    
    public List<Match> getAllMatchesForSeason(Long id);

    public List<Match> getAllMatches();

	public List<Match> getMatchesByPersonAndSeason(Long personId, Long seasonId);
	
	public int getTotalPointsForPlayer1(Match m);
	
	public int getTotalPointsForPlayer2(Match m);
}
